<?php
use Http\B;
require './vendor/autoload.php';
class Index
{
    public static function run($class, $action, $args)
    {
        call_user_func_array([new static(), $action], $args);
    }

    public function __call($name, $arguments)
    {
        var_dump($name, $arguments);
    }

    public function test()
    {
        var_dump(\Longxinhong\Pinyin\Hanzi::pinyin('龙信红'));
        var_dump('index > b');
    }
}

$class = 'B';
$action = 'test';
$args = [
    'id'=>1,
    'name'=>'long'
];

Index::run($class, $action, $args);
